package com.universe.demo.springboot.controller;

import com.universe.demo.springboot.service.PersonService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * Created by jsliu on 2019/1/13.
 */
@RestController
public class TestController {
    @Autowired
    private PersonService personService;

    @RequestMapping("/jdbc")
    public Object jdbc(){
        return personService.queryByJdbc();
    }
    @RequestMapping("/test")
    public Object hello(){
        return "test";
    }
    @RequestMapping("/test2")
    public Object hello2(){
        return "test2";
    }

}
